package com.yingxin.yxerp.module.dingtalk.util;

/**
 * 获取 获取花名册字段组详情
 */

public class EmployeeFieldUtil {

    /**
     * 获取 获取花名册字段组详情
     * @return
     */
    public static String getEmployeeFields(){
        StringBuilder fields = new StringBuilder();
        // 姓名
        setStringBuilder(fields,"sys00-name", true);
        // 身份证姓名
        setStringBuilder(fields,"sys02-realName", true);
        // 证件号码
        setStringBuilder(fields,"sys02-certNo", true);
        // 出生日期
        setStringBuilder(fields,"sys02-birthTime", false);
        // 邮箱
        //setStringBuilder(fields,"sys00-email", true);
        // 部门
        //setStringBuilder(fields,"sys00-dept", true);
        // 直属主管
        //setStringBuilder(fields,"sys00-reportManager", true);
        // 直属主管
        //setStringBuilder(fields,"sys00-reportManager", true);


        // {"field_code":"sys00-position","field_name":"职位","field_type":"DDSelectField","option_text":"[{\"label\":\"打精包\",\"value\":\"10093\"},{\"label\":\"业务内勤\",\"value\":\"10092\"},{\"label\":\"段长\",\"value\":\"10091\"},{\"label\":\"装配组长\",\"value\":\"10090\"},{\"label\":\"出口行车\",\"value\":\"10089\"},{\"label\":\"入口上卷\",\"value\":\"10088\"},{\"label\":\"入口行车\",\"value\":\"10087\"},{\"label\":\"磨床工组长\",\"value\":\"10086\"},{\"label\":\"采购内勤\",\"value\":\"10085\"},{\"label\":\"焊机\",\"value\":\"10084\"},{\"label\":\"工艺主操\",\"value\":\"10083\"},{\"label\":\"南储行车工\",\"value\":\"10082\"},{\"label\":\"地下室工\",\"value\":\"10081\"},{\"label\":\"质检化验组长\",\"value\":\"10080\"},{\"label\":\"技术员\",\"value\":\"10079\"},{\"label\":\"酸洗技术员\",\"value\":\"10078\"},{\"label\":\"机械技术员\",\"value\":\"10077\"},{\"label\":\"操作工\",\"value\":\"10076\"},{\"label\":\"安全内勤\",\"value\":\"10075\"},{\"label\":\"化验员\",\"value\":\"10074\"},{\"label\":\"主操\",\"value\":\"10073\"},{\"label\":\"锌锅主操\",\"value\":\"10072\"},{\"label\":\"备件采购员\",\"value\":\"10071\"},{\"label\":\"硬件管理员\",\"value\":\"10070\"},{\"label\":\"人力资源部经理\",\"value\":\"10069\"},{\"label\":\"综合管理部经理\",\"value\":\"10068\"},{\"label\":\"锌锅副操\",\"value\":\"10067\"},{\"label\":\"污泥烘干机设备工\",\"value\":\"10066\"},{\"label\":\"文员\",\"value\":\"10064\"},{\"label\":\"酸洗工\",\"value\":\"10063\"},{\"label\":\"程序员\",\"value\":\"10062\"},{\"label\":\"前处理\",\"value\":\"10060\"},{\"label\":\"厨师\",\"value\":\"10058\"},{\"label\":\"污水处理工\",\"value\":\"10057\"},{\"label\":\"锅炉工\",\"value\":\"10056\"},{\"label\":\"磨床工\",\"value\":\"10055\"},{\"label\":\"试用期\",\"value\":\"10054\"},{\"label\":\"清洁工\",\"value\":\"10053\"},{\"label\":\"炊事员\",\"value\":\"10052\"},{\"label\":\"出口主操\",\"value\":\"10047\"},{\"label\":\"园艺\",\"value\":\"10046\"},{\"label\":\"包装工\",\"value\":\"10045\"},{\"label\":\"锌锅工\",\"value\":\"10044\"},{\"label\":\"倒卷工\",\"value\":\"10043\"},{\"label\":\"经理助理\",\"value\":\"10042\"},{\"label\":\"司机\",\"value\":\"10041\"},{\"label\":\"上卷工\",\"value\":\"10040\"},{\"label\":\"电工组长\",\"value\":\"10036\"},{\"label\":\"机修工\",\"value\":\"10035\"},{\"label\":\"副操\",\"value\":\"10034\"},{\"label\":\"镀锌质检员\",\"value\":\"10033\"},{\"label\":\"冷轧质检员\",\"value\":\"10032\"},{\"label\":\"冷轧质检站\",\"value\":\"10031\"},{\"label\":\"机修组长\",\"value\":\"10030\"},{\"label\":\"业务员\",\"value\":\"10029\"},{\"label\":\"会计\",\"value\":\"10028\"},{\"label\":\"内勤\",\"value\":\"10027\"},{\"label\":\"保管\",\"value\":\"10026\"},{\"label\":\"入口组长\",\"value\":\"10025\"},{\"label\":\"工艺组长\",\"value\":\"10024\"},{\"label\":\"副段长\",\"value\":\"10023\"},{\"label\":\"作业长\",\"value\":\"10022\"},{\"label\":\"圆盘剪\",\"value\":\"10021\"},{\"label\":\"保安\",\"value\":\"10020\"},{\"label\":\"酸洗质检员\",\"value\":\"10019\"},{\"label\":\"机后\",\"value\":\"10018\"},{\"label\":\"开卷工\",\"value\":\"10017\"},{\"label\":\"边丝工\",\"value\":\"10016\"},{\"label\":\"出口组长\",\"value\":\"10015\"},{\"label\":\"机前\",\"value\":\"10014\"},{\"label\":\"入口副操\",\"value\":\"10013\"},{\"label\":\"行车工\",\"value\":\"10012\"},{\"label\":\"打包工\",\"value\":\"10011\"},{\"label\":\"董事长\",\"value\":\"10001\"},{\"label\":\"总经理\",\"value\":\"10002\"},{\"label\":\"副总经理\",\"value\":\"10003\"},{\"label\":\"经理\",\"value\":\"10004\"},{\"label\":\"副经理\",\"value\":\"10005\"},{\"label\":\"主任\",\"value\":\"10006\"},{\"label\":\"副主任\",\"value\":\"10007\"},{\"label\":\"班长\",\"value\":\"10008\"},{\"label\":\"组长\",\"value\":\"10009\"},{\"label\":\"员工\",\"value\":\"10010\"},{\"label\":\"装配工\",\"value\":\"10037\"},{\"label\":\"酸再生\",\"value\":\"10038\"},{\"label\":\"出口副操\",\"value\":\"10039\"},{\"label\":\"锅炉组长\",\"value\":\"10048\"},{\"label\":\"总经理助理\",\"value\":\"10049\"},{\"label\":\"安全员\",\"value\":\"10050\"},{\"label\":\"电工\",\"value\":\"10051\"},{\"label\":\"财务总监\",\"value\":\"10059\"},{\"label\":\"入口主操\",\"value\":\"10061\"},{\"label\":\"副董事长\",\"value\":\"10065\"}]"},
        // {"field_code":"sys00-mobile","field_name":"手机号","field_type":"TextField","option_text":""},
        // {"field_code":"sys00-jobNumber","field_name":"工号","field_type":"TextField","option_text":""},
        // {"field_code":"sys00-tel","field_name":"分机号","field_type":"TextField","option_text":""},
        // {"field_code":"sys00-confirmJoinTime","field_name":"入职时间","field_type":"DDDateField","option_text":""},
        // {"field_code":"sys00-entryAge","field_name":"司龄（系统计算）","field_type":"TextField"},
        // {"field_code":"sys00-deptIds","field_name":"部门id","field_type":"TextField"},
        // {"field_code":"sys00-mainDept","field_name":"主部门","field_type":"TextField"},
        // {"field_code":"sys00-mainDeptId","field_name":"主部门id","field_type":"TextField"},
        // {"field_code":"sys00-reportManagerId","field_name":"直属主管id","field_type":"TextField"}],
        // {"field_code":"sys01-employeeType","field_name":"员工类型","field_type":"DDSelectField","option_text":"[{\"label\":\"无类型\",\"value\":\"0\"},{\"label\":\"全职\",\"value\":\"1\"},{\"label\":\"兼职\",\"value\":\"2\"},{\"label\":\"实习\",\"value\":\"3\"},{\"label\":\"劳务派遣\",\"value\":\"4\"},{\"label\":\"退休返聘\",\"value\":\"5\"},{\"label\":\"劳务外包\",\"value\":\"6\"}]"},
        // {"field_code":"sys01-employeeStatus","field_name":"员工状态","field_type":"DDSelectField","option_text":"[{\"label\":\"试用\",\"value\":\"2\"},{\"label\":\"正式\",\"value\":\"3\"}]"},{"field_code":"sys01-probationPeriodType","field_name":"试用期","field_type":"DDSelectField","option_text":"[{\"label\":\"无试用期\",\"value\":\"1\"},{\"label\":\"1个月\",\"value\":\"2\"},{\"label\":\"2个月\",\"value\":\"3\"},{\"label\":\"3个月\",\"value\":\"4\"},{\"label\":\"4个月\",\"value\":\"5\"},{\"label\":\"5个月\",\"value\":\"6\"},{\"label\":\"6个月\",\"value\":\"7\"},{\"label\":\"其他\",\"value\":\"8\"}]"},
        // {"field_code":"sys01-regularTime","field_name":"实际转正日期","field_type":"DDDateField"},
        // {"field_code":"sys01-positionLevel","field_name":"岗位职级","field_type":"TextField"},
        // {"field_code":"sys01-planRegularTime","field_name":"计划转正日期","field_type":"DDDateField"}]
        // {"field_code":"sys02-realName","field_name":"身份证姓名","field_type":"TextField"},
        // {"field_code":"sys02-certNo","field_name":"证件号码","field_type":"TextField"},
        // {"field_code":"sys02-birthTime","field_name":"出生日期","field_type":"DDDateField"},
        // {"field_code":"sys02-age","field_name":"年龄（系统计算）","field_type":"TextField"},
        // {"field_code":"sys02-sexType","field_name":"性别","field_type":"DDSelectField","option_text":"[{\"label\":\"男\",\"value\":\"0\"},{\"label\":\"女\",\"value\":\"1\"}]"},{"field_code":"sys02-nationType","field_name":"民族","field_type":"DDSelectField","option_text":"[{\"label\":\"汉族\",\"value\":\"1\"},{\"label\":\"阿昌族\",\"value\":\"40\"},{\"label\":\"白族\",\"value\":\"15\"},{\"label\":\"保安族\",\"value\":\"49\"},{\"label\":\"布朗族\",\"value\":\"36\"},{\"label\":\"布依族\",\"value\":\"11\"},{\"label\":\"朝鲜族\",\"value\":\"14\"},{\"label\":\"穿青人\",\"value\":\"57\"},{\"label\":\"傣族\",\"value\":\"19\"},{\"label\":\"达斡尔族\",\"value\":\"33\"},{\"label\":\"德昂族\",\"value\":\"45\"},{\"label\":\"侗族\",\"value\":\"12\"},{\"label\":\"东乡族\",\"value\":\"24\"},{\"label\":\"独龙族\",\"value\":\"52\"},{\"label\":\"鄂伦春族\",\"value\":\"51\"},{\"label\":\"俄罗斯族\",\"value\":\"47\"},{\"label\":\"鄂温克族\",\"value\":\"42\"},{\"label\":\"高山族\",\"value\":\"56\"},{\"label\":\"亻革家人\",\"value\":\"58\"},{\"label\":\"仡佬族\",\"value\":\"22\"},{\"label\":\"哈尼族\",\"value\":\"16\"},{\"label\":\"哈萨克族\",\"value\":\"18\"},{\"label\":\"赫哲族\",\"value\":\"54\"},{\"label\":\"回族\",\"value\":\"4\"},{\"label\":\"景颇族\",\"value\":\"34\"},{\"label\":\"京族\",\"value\":\"43\"},{\"label\":\"基诺族\",\"value\":\"44\"},{\"label\":\"柯尔克孜族\",\"value\":\"32\"},{\"label\":\"拉祜族\",\"value\":\"23\"},{\"label\":\"黎族\",\"value\":\"17\"},{\"label\":\"傈僳族\",\"value\":\"21\"},{\"label\":\"珞巴族\",\"value\":\"55\"},{\"label\":\"满族\",\"value\":\"3\"},{\"label\":\"毛南族\",\"value\":\"37\"},{\"label\":\"蒙古族\",\"value\":\"9\"},{\"label\":\"门巴族\",\"value\":\"50\"},{\"label\":\"苗族\",\"value\":\"5\"},{\"label\":\"仫佬族\",\"value\":\"31\"},{\"label\":\"纳西族\",\"value\":\"27\"},{\"label\":\"怒族\",\"value\":\"41\"},{\"label\":\"普米族\",\"value\":\"39\"},{\"label\":\"羌族\",\"value\":\"28\"},{\"label\":\"撒拉族\",\"value\":\"35\"},{\"label\":\"畲族\",\"value\":\"20\"},{\"label\":\"水族\",\"value\":\"26\"},{\"label\":\"塔吉克族\",\"value\":\"38\"},{\"label\":\"塔塔尔族\",\"value\":\"53\"},{\"label\":\"土家族\",\"value\":\"8\"},{\"label\":\"土族\",\"value\":\"29\"},{\"label\":\"佤族\",\"value\":\"25\"},{\"label\":\"维吾尔族\",\"value\":\"6\"},{\"label\":\"乌孜别克族\",\"value\":\"46\"},{\"label\":\"锡伯族\",\"value\":\"30\"},{\"label\":\"瑶族\",\"value\":\"13\"},{\"label\":\"彝族\",\"value\":\"7\"},{\"label\":\"裕固族\",\"value\":\"48\"},{\"label\":\"藏族\",\"value\":\"10\"},{\"label\":\"壮族\",\"value\":\"2\"}]"},{"field_code":"sys02-certAddress","field_name":"身份证地址","field_type":"TextField"},{"field_code":"sys02-certEndTime","field_name":"证件有效期","field_type":"DDDateWithLongField"},{"field_code":"sys02-marriage","field_name":"婚姻状况","field_type":"DDSelectField","option_text":"[{\"label\":\"未婚\",\"value\":\"1\"},{\"label\":\"已婚\",\"value\":\"2\"},{\"label\":\"离异\",\"value\":\"3\"},{\"label\":\"丧偶\",\"value\":\"4\"},{\"label\":\"分居\",\"value\":\"5\"}]"},{"field_code":"sys02-joinWorkingTime","field_name":"首次参加工作时间","field_type":"DDDateField"},{"field_code":"sys02-workAge","field_name":"工龄（系统计算）","field_type":"TextField"},{"field_code":"sys02-residenceType","field_name":"户籍类型","field_type":"DDSelectField","option_text":"[{\"label\":\"本地城镇\",\"value\":\"1\"},{\"label\":\"本地农村\",\"value\":\"2\"},{\"label\":\"外地城镇（省内）\",\"value\":\"3\"},{\"label\":\"外地农村（省内）\",\"value\":\"4\"},{\"label\":\"外地城镇（省外）\",\"value\":\"5\"},{\"label\":\"外地农村（省外）\",\"value\":\"6\"}]"},{"field_code":"sys02-address","field_name":"住址","field_type":"TextField"},{"field_code":"sys02-politicalStatus","field_name":"政治面貌","field_type":"DDSelectField","option_text":"[{\"label\":\"团员\",\"value\":\"1\"},{\"label\":\"党员\",\"value\":\"2\"},{\"label\":\"群众\",\"value\":\"3\"},{\"label\":\"其他\",\"value\":\"4\"}]"}],"group_id":"sys02","has_detail":false},{"field_list":[{"field_code":"sys03-highestEdu","field_name":"学历","field_type":"DDSelectField","option_text":"[{\"label\":\"小学\",\"value\":\"9\"},{\"label\":\"初中\",\"value\":\"8\"},{\"label\":\"高中\",\"value\":\"1\"},{\"label\":\"中专\",\"value\":\"2\"},{\"label\":\"大专\",\"value\":\"3\"},{\"label\":\"本科\",\"value\":\"4\"},{\"label\":\"硕士\",\"value\":\"5\"},{\"label\":\"博士\",\"value\":\"6\"},{\"label\":\"其他\",\"value\":\"7\"}]"},{"field_code":"sys03-graduateSchool","field_name":"毕业院校","field_type":"TextField"},{"field_code":"sys03-graduationTime","field_name":"毕业时间","field_type":"DDDateField"},{"field_code":"sys03-major","field_name":"所学专业","field_type":"TextField"}],"group_id":"sys03","has_detail":true},{"field_list":[{"field_code":"sys04-bankAccountNo","field_name":"银行卡号","field_type":"TextField"},{"field_code":"sys04-accountBank","field_name":"开户行","field_type":"TextField"}],"group_id":"sys04","has_detail":false},{"field_list":[{"field_code":"sys05-contractCompanyName","field_name":"合同公司","field_type":"TextField"},{"field_code":"sys05-contractType","field_name":"合同类型","field_type":"DDSelectField","option_text":"[{\"label\":\"固定期限劳动合同\",\"value\":\"1\"},{\"label\":\"无固定期限劳动合同\",\"value\":\"2\"},{\"label\":\"实习协议\",\"value\":\"3\"},{\"label\":\"劳务协议\",\"value\":\"4\"},{\"label\":\"劳务派遣合同\",\"value\":\"5\"},{\"label\":\"返聘协议\",\"value\":\"6\"},{\"label\":\"短期劳动合同\",\"value\":\"7\"},{\"label\":\"其他\",\"value\":\"8\"}]"},{"field_code":"sys05-firstContractStartTime","field_name":"首次合同起始日","field_type":"DDDateField"},{"field_code":"sys05-firstContractEndTime","field_name":"首次合同到期日","field_type":"DDDateField"},{"field_code":"sys05-nowContractStartTime","field_name":"现合同起始日","field_type":"DDDateField"},{"field_code":"sys05-nowContractEndTime","field_name":"现合同到期日","field_type":"DDDateField"},{"field_code":"sys05-contractPeriodType","field_name":"合同期限","field_type":"DDSelectField","option_text":"[{\"label\":\"无\",\"value\":\"1\"},{\"label\":\"6个月\",\"value\":\"2\"},{\"label\":\"12个月\",\"value\":\"3\"},{\"label\":\"24个月\",\"value\":\"4\"},{\"label\":\"36个月或以上\",\"value\":\"5\"}]"},{"field_code":"sys05-contractRenewCount","field_name":"续签次数","field_type":"TextField"}],"group_id":"sys05","has_detail":false},{"field_list":[{"field_code":"sys06-urgentContactsName","field_name":"紧急联系人姓名","field_type":"TextField"},{"field_code":"sys06-urgentContactsRelation","field_name":"联系人关系","field_type":"DDSelectField","option_text":"[{\"label\":\"父母\",\"value\":\"1\"},{\"label\":\"配偶\",\"value\":\"2\"},{\"label\":\"子女\",\"value\":\"3\"},{\"label\":\"其他\",\"value\":\"4\"}]"},{"field_code":"sys06-urgentContactsPhone","field_name":"联系人电话","field_type":"TextField"}],"group_id":"sys06","has_detail":true},{"field_list":[{"field_code":"sys07-familyMemberName","field_name":"姓名(家人)","field_type":"TextField"},{"field_code":"sys07-familyMemberRelation","field_name":"关系(家人)","field_type":"DDSelectField","option_text":"[{\"label\":\"父母\",\"value\":\"1\"},{\"label\":\"配偶\",\"value\":\"2\"},{\"label\":\"子女\",\"value\":\"3\"},{\"label\":\"兄弟姐妹\",\"value\":\"4\"},{\"label\":\"祖\/外祖父母\",\"value\":\"5\"},{\"label\":\"其他亲属\",\"value\":\"6\"}]"},{"field_code":"sys07-familyMemberGender","field_name":"性别(家人)","field_type":"DDSelectField","option_text":"[{\"label\":\"男\",\"value\":\"0\"},{\"label\":\"女\",\"value\":\"1\"}]"},{"field_code":"sys07-familyMemberBirthday","field_name":"生日(家人)","field_type":"DDDateField"},{"field_code":"sys07-familyMemberPhone","field_name":"电话(家人)","field_type":"TextField"}],"group_id":"sys07","has_detail":true},{"field_list":[{"field_code":"sys08-forntIDcard","field_name":"身份证(人像面)","field_type":"DDPhotoField"},{"field_code":"sys08-rearIDcard","field_name":"身份证(国徽面)","field_type":"DDPhotoField"},{"field_code":"sys08-academicCertificate","field_name":"学历证书","field_type":"DDPhotoField"},{"field_code":"sys08-diplomaCertificate","field_name":"学位证书","field_type":"DDPhotoField"},{"field_code":"sys08-releaseLetter","field_name":"前公司离职证明","field_type":"DDPhotoField"},{"field_code":"sys08-personalPhoto","field_name":"员工照片","field_type":"DDPhotoField"}],"group_id":"sys08","has_detail":false}],"success":true,"request_id":"16m98yjhobzhi"}
        return fields.toString();
    }

    private static void setStringBuilder(StringBuilder fields, String field_code, boolean isComma){
        fields.append( field_code );
        if (isComma){
            fields.append(",");
        }
    }

}
